Skip to content

Conversation

@mplatzer
Copy link
Contributor

No description provided.

@mplatzer mplatzer requested a review from Copilot March 27, 2025 22:53
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds timing logs to help track the performance of loading the embedder model within the calculate_embeddings function.

  • Initializes a timer before calling load_embedder and logs the elapsed time.
  • Introduces an additional timer immediately before encoding, which isn’t currently used for logging.
Comments suppressed due to low confidence (1)

mostlyai/qa/_sampling.py:303

  • The timer started at line 303 is not used for any logging or performance measurement. If it's intended to time the embedding calculation, consider adding a corresponding log statement.
t0 = time.time()

@mplatzer mplatzer merged commit 84fcd03 into main Mar 27, 2025
6 checks passed
@mplatzer mplatzer deleted the add-logs-load-embedder branch March 27, 2025 22:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants